<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property string $username 用户名
 * @property string $password 密码
 * @property string $nickname 昵称
 * @property string $avatar 头像
 * @property string $role 角色
 * @property int $company 归属公司
 * @property string $mobile 手机号码
 * @property string $email 邮箱
 * @property int $sex 性别；0未知，1男，2女
 * @property string $notes 备注
 * @property int $status 是否启用 0：否 1：是
 * @property int $del_flag 删除标识；默认0，1为删除
 * @property \Carbon\Carbon $created_at 创建时间
 * @property string $update_at 更新时间
 * @property string $deleted_at 删除时间
 */
class AdminUser extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'admin_user';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'username', 'password', 'nickname', 'avatar', 'role', 'company', 'mobile', 'email', 'sex', 'notes', 'status', 'del_flag', 'created_at', 'update_at', 'deleted_at'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'company' => 'integer', 'sex' => 'integer', 'status' => 'integer', 'del_flag' => 'integer', 'created_at' => 'datetime'];
}